<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <link href="css/main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
a:link {color: #000000; text-decoration:none; font-weight:bold;}
a:visited {color: #555; text-decoration:none; font-weight:bold;}
a:hover {color: #0000FF; text-decoration:none; font-weight:bold;}
a:active {color: #0000FF; text-decoration:none; font-weight:bold;}
</style>
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center" style="margin-left:auto; margin-right:auto;">
    <table border="0"><tr><td align="left" style="border-bottom:1px solid black;">
    
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx">Home</asp:HyperLink>&nbsp;|&nbsp; 
        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Register.aspx">Registrarse</asp:HyperLink><br />
        
        </td></tr><tr><td>
        <br />
        Ingresa tu nombre de usuario y password.
        <br />
        <br />
        <asp:Login ID="Login1" runat="server" Width="269px" style="background-color: #c5d6e8; border-right: silver thin solid; border-top: silver thin solid; border-left: silver thin solid; border-bottom: silver thin solid;" FailureText="El usuario o el password son incorrectos. Por favor intenta nuevamente.">
            <LayoutTemplate>
                <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse">
                    <tr>
                        <td style="height: 147px">
                            <table border="0" cellpadding="0" style="width: 269px">
                                <tr>
                                    <td align="center" colspan="2">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Usuario:</asp:Label></td>
                                    <td>
                                        <asp:TextBox ID="UserName" runat="server" Width="147px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                            ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label></td>
                                    <td>
                                        <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="147px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                            ErrorMessage="Ingresa el password." ToolTip="Password requerido." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:CheckBox ID="RememberMe" runat="server" Text=" Recordarme la proxima vez." />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" style="color: red">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" colspan="2">
                                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="Login1" />
                                    </td>
                                </tr>
                            </table>
                            &nbsp;</td>
                    </tr>
                </table>
            </LayoutTemplate>
        </asp:Login>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="Login1" />
    
        </td></tr></table>
        </div>
    </form>
</body>
</html>
